package com.techsoul.module.tms.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.tms.pojo.entity.FreightVehicleAssigned;
import com.techsoul.module.tms.pojo.param.FreightVehicleAssignedSearchParam;
import com.techsoul.module.tms.pojo.vo.FreightVehicleAssignedVo;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhaowei
 * @since 2021 -05-27
 */
public interface FreightVehicleAssignedMapper extends BaseMapper<FreightVehicleAssigned> {
    /**
     * Find all list.
     *
     * @param params the params
     * @return the list
     */
    List<FreightVehicleAssignedVo> findAll(@Param("params") FreightVehicleAssignedSearchParam params);
    List<FreightVehicleAssignedVo> findByCellNo(@Param("cellNo") String cellNo);
    FreightVehicleAssignedVo findById(@Param("id") String id);
    /**
     * Find all page.
     *
     * @param page the page
     * @param params the params
     * @return the page
     */
    IPage<FreightVehicleAssignedVo> findAll(Page<FreightVehicleAssignedVo> page,
        @Param("params") FreightVehicleAssignedSearchParam params);

    /**
     * Insert batch some column int.
     *
     * @param entityList the entity list
     * @return the int
     */
    int insertBatchSomeColumn(List<FreightVehicleAssigned> entityList);
}
